//
//  LKChooseProductViewModel.m
//  YLHelper
//
//  Created by she1323 on 2018/5/3.
//  Copyright © 2018年 she1323. All rights reserved.
//

#import "LKChooseProductViewModel.h"

@implementation LKChooseProductViewModel

- (instancetype)init
{
    if (self = [super init]) {
        _fundTags = [NSMutableArray arrayWithArray:@[@(0), @(0), @(0), @(0)]];
//        _producTags = [NSMutableArray arrayWithArray:@[@(0), @(0), @(0), @(0)]];
        
        
    }
    return self;
}
//
//- (NSArray<DKFilterModel *> *)productModels
//{
//    if (!_productModels) {
//        NSArray *filterData =  @[@"不限",@"按月分配",@"按半年分配",@"到期分配"];
//        
//        DKFilterModel *model1 = [[DKFilterModel alloc] initElement:filterData ofType:DK_SELECTION_SINGLE];
//        model1.elementTags = @[@(-1), @(1), @(6), @(0)];
//        model1.title = @"兑换方式";
//        model1.style = DKFilterViewDefault;
//        
//        filterData = @[@"不限",@"6%-9%",@"9%-12%",@"12%-16%",@"其他"];
//        DKFilterModel *model2 = [[DKFilterModel alloc] initElement:filterData ofType:DK_SELECTION_SINGLE];
//        model2.elementTags = @[@(-1),@(0),@(1),@(2),@(3)];
//        model2.title = @"年化利率";
//        model2.style = DKFilterViewDefault;
//        
//        filterData = @[@"不限",@"3个月",@"6个月",@"12个月",@"18个月",@"24个月"];
//        DKFilterModel *model3 = [[DKFilterModel alloc] initElement:filterData ofType:DK_SELECTION_SINGLE];
//        model3.elementTags = @[@-1, @3, @6, @12, @18, @24];
//        model3.title = @"产品期限";
//        model3.style = DKFilterViewDefault;
//        
//        filterData = @[@"不限",@"易收益",@"企来贷"];
//        DKFilterModel *model4 = [[DKFilterModel alloc] initElement:filterData ofType:DK_SELECTION_SINGLE];
//        model4.elementTags = @[@-1, @2, @1];
//        model4.title = @"产品类型";
//        model4.style = DKFilterViewDefault;
//        
//        _productModels = [NSMutableArray arrayWithCapacity:4];
//        _productModels = @[model1, model2, model3, model4];
//    }
//    return _productModels;
//}


- (NSArray<DKFilterModel *> *)fundModels
{
    if (!_fundModels) {
//        NSArray *filterData =  @[@"不限",@"契约型",@"有限合伙"];
//
//        DKFilterModel *model1 = [[DKFilterModel alloc] initElement:filterData ofType:DK_SELECTION_SINGLE];
//        model1.elementTags = @[@(-1), @(1), @(2)];
//        model1.title = @"产品类型";
//        model1.style = DKFilterViewDefault;
//
//        filterData = @[@"不限",@"12+",@"24+",@"36+"];
//        DKFilterModel *model2 = [[DKFilterModel alloc] initElement:filterData ofType:DK_SELECTION_SINGLE];
//        model2.elementTags = @[@(-1), @(12), @(24), @(36)];
//        model2.title = @"产品期限(月)";
//        model2.style = DKFilterViewDefault;
//        filterData = @[@"不限",@"封闭型",@"开放型",@"半开放型"];
//        DKFilterModel *model3 = [[DKFilterModel alloc] initElement:filterData ofType:DK_SELECTION_SINGLE];
//        model3.elementTags = @[@(-1), @(1), @(2), @(3)];
//        model3.title = @"运作方式";
//        model3.style = DKFilterViewDefault;
//        _fundModels = [NSMutableArray arrayWithCapacity:4];
//        _fundModels = @[model1, model2, model3];
        
        
        
        
        
                NSArray *filterData =  @[@"不限",@"按月分配",@"按半年分配",@"到期分配"];
        
                DKFilterModel *model1 = [[DKFilterModel alloc] initElement:filterData ofType:DK_SELECTION_SINGLE];
                model1.elementTags = @[@(-1), @(1), @(6), @(0)];
                model1.title = @"兑换方式";
                model1.style = DKFilterViewDefault;
        
                filterData = @[@"不限",@"6%-9%",@"9%-12%",@"12%-16%",@"其他"];
                DKFilterModel *model2 = [[DKFilterModel alloc] initElement:filterData ofType:DK_SELECTION_SINGLE];
                model2.elementTags = @[@(-1),@(0),@(1),@(2),@(3)];
                model2.title = @"年化利率";
                model2.style = DKFilterViewDefault;
        
                filterData = @[@"不限",@"3个月",@"6个月",@"12个月",@"18个月",@"24个月"];
                DKFilterModel *model3 = [[DKFilterModel alloc] initElement:filterData ofType:DK_SELECTION_SINGLE];
                model3.elementTags = @[@-1, @3, @6, @12, @18, @24];
                model3.title = @"产品期限";
                model3.style = DKFilterViewDefault;
        
                filterData = @[@"不限",@"易收益",@"企来贷"];
                DKFilterModel *model4 = [[DKFilterModel alloc] initElement:filterData ofType:DK_SELECTION_SINGLE];
                model4.elementTags = @[@-1, @2, @1];
                model4.title = @"产品类型";
                model4.style = DKFilterViewDefault;
        
                _fundModels = [NSMutableArray arrayWithCapacity:4];
                _fundModels = @[model1, model2, model3, model4];
    }
    return _fundModels;
}

@end
